/*
* 1、略；2、略
* 3、A；4、B；5、D-----C
* 5：啥叫函数的出口？啥叫动态分配内存？啥叫全局变量*/

import java.util.Scanner;

public class Test {
    public static void FormatTurn(char ch){
        if (ch > 'A' && ch < 'Z'){
            System.out.println(ch);
        }else {
            ch = (char)(ch - 32);
            System.out.println(ch);
        }
    }

    public static void main1(String[] args) {
        //Scanner scanner = new Scanner(System.in);
        //我怎么才能判断输入的值的格式是不是字符类型？
        char a = 'q';
        FormatTurn(a);
    }
    public static void isDays(int year,int month,int day) {
        int days=0;
        switch(month){
            case 12:days+=30;//这里不要加break
            case 11:days+=31;
            case 10:days+=30;
            case 9:days+=31;
            case 8:days+=31;
            case 7:days+=30;
            case 6:days+=31;
            case 5:days+=30;
            case 4:days+=31;
            case 2:
                if((year%4==0&&year%100!=0)||(year%400==0)){
                    days+=29;
                }else{
                    days+=28;
                }
            case 3:days+=31;
            case 1:days+=day;//1月15号，不能算整个1月
        }
        System.out.print("第" + days + "天");
    }
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.print("请输入年:");
        int year=sc.nextInt();
        System.out.print("请输入月:");
        int month=sc.nextInt();
        System.out.print("请输入日:");
        int day=sc.nextInt();
        isDays(year,month,day);
    }

}
